<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1" import="java.util.*,erp.education.server.db.entites.setup.school.Courses "%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>School Register Form</title>
 <link rel="stylesheet" href="css/default.css"/>
  <link rel="stylesheet" href="css/multi-select.css"/>
<link rel="stylesheet" href="css/<%=session.getAttribute("cssView")%>/jquery-ui.css"/>
 <script type="text/javascript">
 $(document).ready(function(){
 defaultFunction();
 ui();
 jGrid();
 
 })
 </script>
<script type="text/javascript" src="js/common/jquery.multi-select.js"></script>
<script type="text/javascript" src="js/setup/branchtocourse.js"></script>
 
</head>

<body>
<%
List result=(List)request.getAttribute("result");
List<Object[]> branchDetails=(List<Object[]>)result.get(0);
List<Courses> courses=(List<Courses>)result.get(1);
 
%>
<div class="pageHeader">Course details</div>
<div class="content">
 <div class="form1">
<form name="branchCourseDetails" >

<table class="form" cellpadding="0" cellspacing="0" >
  <tr><td colspan="3">&nbsp;</td></tr>
<tr>
  
  <td width="328"><select name="selectedBranchs" multiple="multiple" notNull msg="Select branch">
  <option value="-1" disabled="disabled">Select</option>
  <%
 
for(Object[] row:branchDetails){
%>
<option value="<%=row[2] %>"><%=row[1] %>-><%=row[3] %></option>
  <%}%>
  </select> </td>
  <td width="16">&nbsp;</td>
     
    <td width="334"><select name="selectedCourses" multiple="multiple" notNull msg="Select course">
	  <option value="-1" disabled="disabled">Select</option>
	<%
 
for(Courses course:courses){
%>

<option value="<%=course.getCourseId() %>"><%=course.getCourseName() %></option>
<%}%>
	
	</select>  </td>
  </tr>
  <tr><td colspan="3">&nbsp;</td></tr>
  <tr >
  <td colspan="3"  align="right" ><input type="button" value="Save" onclick="branchtocourse.savepdate();" /><input type="reset" value="Clear" onclick="branchtocourse.clearForm();" /></td></tr>
</table>

</form> 
</div>
 
 
</body>
</html>
